import { put, takeEvery, delay } from 'redux-saga/effects'
import { increment_sync, increment} from "../actions/count.action"


function * increment_sync_test(action) {
    console.log(action)
    yield delay(2000)
    yield put(increment(1))
}


export default function * countSaga () {
    yield takeEvery(increment_sync, increment_sync_test)
}



